//
// Created by Joey on 2019/12/14.
// 数组计算总成绩
#include<iostream>

using namespace std;


int main() {

    int arr[3][3] = {
            {89, 90, 97},
            {96, 80, 98},
            {88, 89, 97}
    };

    for (int i = 0; i < 3; ++i) {
        int score = 0;
        for (int j = 0; j < 3; ++j) {
            score += arr[i][j];
        }
        cout << score << endl;
    }
}


